#ifndef __IWDG_H
#define __IWDG_H

#include "type_def.h"

#define IWDG_KEY_ENABLE         ((uint8_t)0xCC)
#define IWDG_KEY_REFRESH         (uint8_t)0xAA
#define IWDG_WriteAccess_Enable (uint8_t)0x55
#define IWDG_Prescaler_256      (uint8_t)0x06 /*!< Used to set prescaler register to 128 */
#define IWDG_Reload              0xff
#define RST_FLAG_IWDGF          (uint8_t)0x02
void IWDG_Configuration(void);
void Test_IWDGReset(void);
FlagStatus RST_GetFlagStatus(uint8_t RST_Flag);
void RST_ClearFlag(uint8_t RST_Flag);


#endif